package info.tsukaworld.actor;
import info.tsukaworld.world.*;

public class Ladder extends Terrain
{
    private boolean touched;
    private ActorWorld world;
    
    public Ladder(ActorWorld w, String s)
    {
        super(s, false);
        setColor(null);
        touched = false;
        world = w;
    }
    
    public void toggle()
    {
        touched = !touched;
        if( touched )
            world.step();
    }
    
    public boolean isActive()
    {
        return touched;
    }
    
}